<header class="common_head-box">
    <div class="common_head">
        <img src="image/back.png" ng-click="backButton()" alt="" />
        <span>上传头像</span>
        <div class="head_upload_start">选择<input type="file" id="fileInput" /></div>
    </div>
</header>
<img ng-src="{{data.headimgurl}}" alt="" class="old_head_img" ng-if="!uploadBtn">
<div class="cropArea" ng-class="{'big':size=='big', 'medium':size=='medium', 'small':size=='small'}">
    <img-crop image="imageDataURI"
        result-image="resImageDataURI"
        change-on-fly="changeOnFly"
        area-type="{{type}}"
        area-min-size="selMinSize"
        result-image-format="{{resImgFormat}}"
        result-image-quality="resImgQuality"
        result-image-size="resImgSize"
        on-change="onChange($dataURI)"
        on-load-begin="onLoadBegin()"
        on-load-done="onLoadDone()"
        on-load-error="onLoadError()"
    ></img-crop>
</div>
<div class="upload_btn" ng-if="uploadBtn" ng-click="upload_action()">
    <p>上传</p>
</div>